<?php
declare (strict_types = 1);

namespace app\admin\controller;

use app\model\CategoryModel;
use think\facade\View;

class Category
{
    /*
     * 分类列表
     * */
    public function index()
    {
        //查找分类数据
        $categoryList = CategoryModel::select();

        View::assign('categoryList', $categoryList);

        return View::fetch();
    }

    public function add()
    {
        return View::fetch();
    }

    public function addSave()
    {

    }

}




























